const initialState = {}

const user = (state = initialState, action) => {
  switch (action.type) {
    case "user/getUserInfo":
      return action.payload
    // 清除 个人信息
    case "user/clearInfo":
      return initialState
    default:
      return state
  }
}

export default user
